package cn.cdu.doctor.entity;

import cn.cdu.basics.baseClass.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.validator.constraints.Length;

import javax.persistence.Entity;
import javax.persistence.Table;


@Data
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "subject")
@TableName("subject")
@Schema(description = "科室")
public class HospitalSubject extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "科室名称")
    private String subName;

    @Schema(description = "科室代码")
    private String subCode;

    @Schema(description = "科室人数")
    private String subNumber;

    @Schema(description = "科室主任医师人数")
    private String superNumber;

    @Length(max = 1024)
    @Schema(description = "科室介绍")
    private String about;

    @Schema(description = "成立日期")
    private String startDate;

    @Schema(description = "责任医生")
    private String dutyDoctor;

    @Schema(description = "备注")
    private String remark;
}